package client.comm.baoding.adapter.page

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import client.comm.baoding.R
import client.comm.baoding.fragment.*
import client.comm.commlib.ContextProvider

class ZcjlHistoryFragmentPageAdapter(fm: FragmentManager) : FragmentStatePagerAdapter(fm) {

    val fragments = arrayOf(ZcjlHistoryOneFragment(), ZcjlHistoryTwoFragment())

    val tabTitles = arrayOf("推荐奖励", "补贴奖励")

    override fun getItem(position: Int): Fragment {
        return fragments[position]!!
    }

    override fun getCount(): Int {
        return fragments.size
    }

    override fun getPageTitle(position: Int): CharSequence? {
        return tabTitles[position]
    }
}